package com.jplus.dao;

import com.jplus.entity.User;

import java.util.Date;
import java.util.List;

public interface UserDao {

    List<User> getAllUsers();

    User getUserByBusinessId(String businessId);

    User getUserByPhone(String phone);

    User getUserById(Integer id);

    int insertOneUser(User user);

    int updateOneUserById(User user);

    int deleteOneUserByBusinessId(String businessId);

    int deleteOneUserByPhone(String phone);

    int updateAuthCodeByBusinessId(User user);

    String getUmbrellaTypeById(Integer id);

    String getAuthCodeByPhone(String phone);

    String getUserIdByPhone(String phone);
}
